<?php
namespace Common\model;
use Think\Model;

class AdminModel extends Model{
	private $_db = '';

	public function __construct(){
		$this->_db = M('admin');
	}

	public function getAdmins(){
		return $this->_db->order('adminId desc')->select();
	}
	public function delete($adminid){
       return $this->_db->where('adminId ="'.$adminid.'"')->delete();
        
    }
    public function getadminusr($adminusr){
    	$data=$this->_db->where('"adminUsr="'.$adminusr.'')->find();
    	return $data;
    }
}